package cn.yilongquan.mapper;

import cn.yilongquan.user.domain.Employee;
import cn.yilongquan.user.query.EmployeeQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {

    // 根据ID查询
    Employee findById(Long id);

    // 查询所有
    List<Employee> findAll();

    // 新增
    void add(Employee employee);

    // 更新
    void update(Employee employee);

    // 根据ID删除
    void deleteById(Long id);

    // 批量删除
    void batchDelete(List<Long> ids);

    // 分页查询
    List<Employee> pageList(EmployeeQuery query);

    List<Long> findRoleIdsByEmployeeId(Long employeeId);

    Employee findByLoginInfoId(Long id);
}